package com.example.admin_oa.model.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.comment_oa.pojos.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
* @author cjl
* @description 针对表【sys_user】的数据库操作Mapper
* @createDate 2022-10-18 16:26:34
* @Entity com.example.admin_oa.model.pojo.SysUser
*/
@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {
    //用户id查询权限字符,reamle授权使用
    Set<String> findUserPermissionByid(@Param("userId") int userId);
    //查询用户角色
    Set<String> selectAllByUserId(@Param("userId") int userId);
    //byUserNo
    List<SysUser> selectByUserNo(@Param("userNo")String userNo);

    List<SysUser> SysUserEmp();
}




